<?
require_once("../security/security.php");

// Check security
if(!isset($_SESSION['logged'])){
	echo "You cannot access this module";
	exit();
}

$fileUrl 	= getValue("fileUrl","str","GET","");
$filepath	= $_SERVER['DOCUMENT_ROOT'] . $fileUrl;
if(file_exists($filepath)) @unlink($filepath);
?>
<script language="javascript">window.location.href = "editor/filemanager/browser/default/frmresourceslist.html";</script>